<?php

namespace Sifast\ProjectBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;

class AdresseType extends AbstractType
{
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            ->add('numVoie')
            ->add('nomVoie')
            ->add('localite')
            ->add('codePostal')
            ->add('pays')
            ->add('ville')
            ->add('dateDebut')
            ->add('dateFin')
        ;
    }

    public function setDefaultOptions(OptionsResolverInterface $resolver)
    {
        $resolver->setDefaults(array(
            'data_class' => 'Sifast\ProjectBundle\Entity\Adresse'
        ));
    }

    public function getName()
    {
        return 'sifast_projectbundle_adressetype';
    }
}
